namespace NEnsure.Rules
{
	public class EmailRule : RegexRule
	{
		public override string RuleKey
		{
			get { return "Email Rule"; }
		}

		public EmailRule()
			: base(@"^([a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4})?$", "{value} is not a valid email.")
		{
			
		}
	}
}
